<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="sec" uri="http://www.springframework.org/security/tags" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>

<fmt:setBundle basename="ApplicationMessage" />
<fmt:setLocale value="zh_CN" />


<div class="x-breadcrumb-wrapper" style="margin-top:20px;">
  <div class="x-breadcrumb yellow clearfix">
    <h2>
      <span>课程列表</span>
    </h2>
  </div>
</div>

<table class="table table-striped table-hover x-table" style="margin-bottom:20px;">
  <thead>
    <tr>
      <th>团课编号</th>
      <th>操房</th>
      <th>开课时间</th>
      <th>门店</th>
      <th>课程周期</th>
      <th>课时</th>
      <th>状态</th>
      <th class="text-center">操作</th>
    </tr>
  </thead>
  <tbody>
    <c:forEach var="courseRound" items="${courseRounds}">
     <c:if test="${courseRound.courseStatus.alias != 'arranging'}">
         <tr>
         <td>${courseRound.groupAttr.description}</td>
         <td>${courseRound.groupAttr.gym}</td>
         <td>${courseRound.groupAttr.openDescription}</td>
         <td>${courseRound.site.name}</td>
         <td>${courseRound.course.weeks}</td>
         <td>${courseRound.course.hours}</td>
         <td>${status == 'arranging' ? '待排课' : courseRound.courseStatus.description}</td>
         <td class="text-center">
               <a href="${ctx.host}/group-rounds/${courseRound.code}" title="课程详情">详情</a>&nbsp;&nbsp;
         </td>
      </tr>
     </c:if>
    </c:forEach>
  </tbody>
</table>
